package com.wuyixu.dao;

import java.util.List;

import com.wuyixu.domain.Sku;
import com.wuyixu.domain.Spec;
import com.wuyixu.domain.SpecOption;

public interface SpecMapper {
	//展示所有
	public List<Spec> selects(Spec spec);
	//增加主表
	public int addSpec(Spec spec);
	//增加从表
	public int addOption(SpecOption option);
	int delOptions(int ...ids);
	int delSpec(int[] ids);

	int update(Spec spec);
	Spec findById(int id);
	List<Spec> listAll();
	
}
